package es.buffygilmore.dietadisociada.modelo.db;

import android.net.Uri;
import android.provider.BaseColumns;

public class DietaDisociadaContract {

	public static final String AUTHORITY = "es.buffygilmore.dietadisociada.provider";

	public static final int GRUPOS = 1;
	public static final int GRUPO_ID = 2;

	// To prevent someone from accidentally instantiating the contract class,
	// give it an empty constructor.
	private DietaDisociadaContract() {
	}

	/* Inner class that defines the table contents */
	public static abstract class Grupo implements BaseColumns {

		private Grupo() {
		}

		public static final String TABLE_NAME = "grupo";
		public static final String COLUMN_NAME_NOMBRE = "nombre";
		public static final String COLUMN_NAME_DESCRIPCION = "descripcion";
		public static final String COLUMN_NAME_RESUMEN = "resumen";

		/**
		 * The content:// style URL for this table
		 */
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/grupo");

		/**
		 * The MIME type of {@link #CONTENT_URI} providing a directory of notes.
		 */
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.grupo";
		/**
		 * The MIME type of a {@link #CONTENT_URI} sub-directory of a single
		 * note.
		 */
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.grupo";
		/**
		 * The default sort order for this table
		 */
		public static final String DEFAULT_SORT_ORDER = "nombre ASC";

	}

	public static abstract class CompatibilidadGrupos implements BaseColumns {
		public static final String TABLE_NAME = "compatibilidad_grupos";
		public static final String COLUMN_NAME_TIPO = "tipo_compatibilidad";
		public static final String COLUMN_NAME_GRUPO1 = "grupo_1";
		public static final String COLUMN_NAME_GRUPO2 = "grupo_2";
	}

	public static abstract class TipoCompatibilidad implements BaseColumns {
		public static final String TABLE_NAME = "tipo_compatibilidad";
		public static final String COLUMN_NAME_CODIGO = "codigo";
		public static final String COLUMN_NAME_NOMBRE = "nombre";
		public static final String COLUMN_NAME_DESCRIPCION = "descripcion";
	}

	public static abstract class TextoInternacionalizado implements BaseColumns {
		public static final String TABLE_NAME = "texto_internacionalizado";
		public static final String COLUMN_NAME_LOCALE = "locale";
		public static final String COLUMN_NAME_TEXTO = "texto";

	}
}
